google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-25',23859745,null,null,null,null], ['2024-02-26',23864742,null,null,null,null], ['2024-02-27',23868457,null,null,null,null], ['2024-02-28',23872125,null,null,null,null], ['2024-02-29',23875065,null,null,null,null], ['2024-03-01',23880127,null,null,null,null], ['2024-03-02',23892273,null,null,null,null], ['2024-03-03',23900242,null,null,null,null], ['2024-03-04',23902918,null,null,null,null], ['2024-03-05',23905715,null,null,null,null], ['2024-03-06',23905715,null,null,null,null], ['2024-03-07',23908895,null,null,null,null], ['2024-03-08',23911701,null,null,null,null], ['2024-03-09',23917461,null,null,null,null], ['2024-03-10',23920784,null,null,null,null], ['2024-03-11',23920784,null,null,null,null], ['2024-03-12',23939583,null,null,null,null], ['2024-03-13',23944876,null,null,null,null], ['2024-03-14',23950877,null,null,null,null], ['2024-03-15',23954790,null,null,null,null], ['2024-03-16',23956016,null,null,null,null], ['2024-03-17',23958634,null,null,null,null], ['2024-03-18',23959995,null,null,null,null], ['2024-03-19',23962783,null,null,null,null], ['2024-03-20',23965867,null,null,null,null], ['2024-03-21',23967353,null,null,null,null], ['2024-03-22',23969681,null,null,null,null], ['2024-03-23',23971760,null,null,null,null], ['2024-03-24',23974613,null,null,null,null], ['2024-03-25',23974613,null,null,null,null], ['2024-03-26',23975973,null,null,null,null], ['2024-03-27',23980366,null,null,null,null], ['2024-03-28',23984290,null,null,null,null], ['2024-03-29',23987025,null,null,null,null], ['2024-03-30',23990914,null,null,null,null], ['2024-03-31',23991604,null,null,null,null], ['2024-04-01',23996331,null,null,null,null], ['2024-04-02',23998780,null,null,null,null], ['2024-04-03',23998780,null,null,null,null], ['2024-04-04',24001882,null,null,null,null], ['2024-04-05',24004697,null,null,null,null], ['2024-04-06',24006207,null,null,null,null], ['2024-04-07',24012493,null,null,null,null], ['2024-04-08',24021252,null,null,null,null], ['2024-04-09',24025375,null,null,null,null], ['2024-04-10',24030998,null,null,null,null], ['2024-04-11',24037329,null,null,null,null], ['2024-04-12',24037329,null,null,null,null], ['2024-04-13',24041459,null,null,null,null], ['2024-04-14',24042959,null,null,null,null], ['2024-04-15',24044020,null,null,null,null], ['2024-04-16',24046208,null,null,null,null], ['2024-04-17',24047556,null,null,null,null], ['2024-04-18',24048591,null,null,null,null], ['2024-04-19',24049884,null,null,null,null], ['2024-04-20',24051913,null,null,null,null], ['2024-04-21',24052901,null,null,null,null], ['2024-04-22',24054734,null,null,null,null], ['2024-04-23',24057243,null,null,null,null], ['2024-04-24',24058118,null,null,null,null], ['2024-04-25',24060264,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });